package cn.wolfcode.luowowo.search.service.impl;


import cn.wolfcode.luowowo.search.repository.UserInfoTemplateRepository;
import cn.wolfcode.luowowo.search.service.IUserInfoTemplateService;
import cn.wolfcode.luowowo.search.template.UserInfoTemplate;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.elasticsearch.core.ElasticsearchTemplate;

import java.util.List;

@Service
public class UserInfoTemplateServiceImpl implements IUserInfoTemplateService {

    @Autowired
    private UserInfoTemplateRepository repository;
    @Autowired
    private ElasticsearchTemplate template;


    @Override
    public void save(UserInfoTemplate tt) {
        repository.save(tt);
    }

    @Override
    public List<UserInfoTemplate> findByDestName(String name) {

        return repository.findByDestName(name);
    }
}
